/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.menosehmais.dto;

import br.com.menosehmais.framework.persistence.DomainObjectDTO;
import br.com.menosehmais.model.MarkedDO;

/**
 *
 * @author Junior JAFJ
 */
public class MarkedDTO extends DomainObjectDTO<MarkedDO>{
    
    String id;
    String idPortlet;

    public String getIdPortlet() {
        return idPortlet;
    }

    public void setIdPortlet(String idPortlet) {
        this.idPortlet = idPortlet;
    }
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public MarkedDTO() {
        super(new MarkedDO());
    }

    public MarkedDO toDomainObject() {
        MarkedDO markedDO = this.domainObjectInstance();
        markedDO.setId(id);
        markedDO.setReferenceId(idPortlet);
        return markedDO;
    }
    
}
